﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="discount.aspx.cs" Inherits="basic_discount" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <link href="../css/addbook.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div> <div>
<center>
    <div class="wrap">
        <div class="top">
            <div class="top1">
              
            </div>
        </div>
        <div class="shortnfo">
            <h2>当前位置：基本信息->优惠信息</h2>
            <div class="menuitems">
                
           <ul>
                      <li><a id="A1"  href="../master/index.aspx" runat="server">首页</a></li>
                      <li><a id="A2" href="~/basic/discount_add.aspx" runat="server">添加优惠</a></li>
                     
                      <li><a href="../master/basic.aspx">取消删除</a></li>
                  </ul>
            </div>
        </div>
        <div class="content">
           <table border="0" style="table-layout:fixed;width:100%;text-align:left;height:100%" >
               <tr><td>
                   图书名称：  <asp:TextBox ID="TextBox1" runat="server" Width="177px"></asp:TextBox>
                   </td><td colspan="2">
                     
                       <asp:Button ID="Button1" runat="server" Text="查找" OnClick="Button1_Click" />
                     
                   </td>
                  
               </tr>

               <tr>
                    <td colspan="3">
<asp:GridView ID="Gv1" runat="server" AutoGenerateColumns="False" DataKeyNames="编号"  Height="100%" Width="100%" AllowPaging="True" PageSize="5" OnPageIndexChanging="Gv1_PageIndexChanging" OnRowDeleting="Gv1_RowDeleting" OnRowCancelingEdit="Gv1_RowCancelingEdit" OnRowEditing="Gv1_RowEditing" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" >
    <Columns>
        <asp:BoundField DataField="编号" HeaderText="编号" ReadOnly="True" SortExpression="编号" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:BoundField DataField="图书名称" HeaderText="图书名称" SortExpression="图书名称" >
        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:BoundField DataField="优惠价" HeaderText="优惠价" SortExpression="优惠价" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        <HeaderStyle Width="100px" />
        </asp:BoundField>
        <asp:BoundField DataField="起始时间" HeaderText="起始时间" SortExpression="起始时间" DataFormatString="{0:d}" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:BoundField DataField="终止时间" HeaderText="终止时间" SortExpression="终止时间" DataFormatString="{0:d}" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" CommandName="Delete" 
                            ImageUrl="~/image_oracle/BtnDelete.gif" 
                            onclientclick="return confirm('确定删除吗？');" />
                    </ItemTemplate>
                </asp:TemplateField>
    </Columns>
    <FooterStyle  HorizontalAlign="Center" VerticalAlign="Middle" />
    <HeaderStyle  Font-Bold="True"  HorizontalAlign="Center" VerticalAlign="Middle" />
    <PagerStyle  HorizontalAlign="Left" />
    <RowStyle HorizontalAlign="Center"  Height="47px" />
   <%-- <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />--%>
  <%--  <SortedAscendingCellStyle BackColor="#F1F1F1" />
    <SortedAscendingHeaderStyle BackColor="#007DBB" />
    <SortedDescendingCellStyle BackColor="#CAC9C9" />
    <SortedDescendingHeaderStyle BackColor="#00547E" />--%>
</asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString4 %>" ProviderName="<%$ ConnectionStrings:ConnectionString4.ProviderName %>" SelectCommand="select * from booksale. discount"></asp:SqlDataSource>
                    </td>
                </tr>





            </table>
        </div>
         <div class="footer">
    <p>Copyright ?2019  All Rights Reserved</p> 
     </div>
    </div>



</center>
    </div>
    </form>
</body>
</html>
